home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / TSRM / tsrm_config_common.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-07  |  763 b   |  48 lines

  1. #ifndef TSRM_CONFIG_COMMON_H
  2. #define TSRM_CONFIG_COMMON_H
  3.  
  4. #if WINNT|WIN32
  5. # define TSRM_WIN32
  6. #endif
  7.  
  8. #ifndef TSRM_WIN32
  9. # include "tsrm_config.h"
  10. # include <sys/param.h>
  11. #else
  12. # include "tsrm_config.w32.h"
  13. #endif
  14.  
  15. #ifdef TSRM_WIN32
  16. #include <malloc.h>
  17. #endif
  18.  
  19. #if HAVE_ALLOCA_H
  20. #include <alloca.h>
  21. #endif
  22.  
  23. #if HAVE_UNISTD_H
  24. #include <unistd.h>
  25. #endif
  26.  
  27. #if HAVE_LIMITS_H
  28. #include <limits.h>
  29. #endif
  30.  
  31. #ifndef MAXPATHLEN
  32. # ifdef PATH_MAX
  33. #  define MAXPATHLEN PATH_MAX
  34. # else
  35. #  define MAXPATHLEN 256
  36. # endif
  37. #endif
  38.  
  39. #if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2))
  40. # define tsrm_do_alloca(p) alloca(p)
  41. # define tsrm_free_alloca(p)
  42. #else
  43. # define tsrm_do_alloca(p)   malloc(p)
  44. # define tsrm_free_alloca(p) free(p)
  45. #endif
  46.  
  47. #endif /* TSRM_CONFIG_COMMON_H */
  48.